<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title></title>
    <script src="../js/vue.js"></script>

</head>
<!-- 
        v-pre:
            1.跳过其所在节点的编译过程
            2.可用它跳过没有指令语法、插值语法的节点，会加快编程
 -->


<body>
    <div id="root">
        <h2 v-pre>vue其实很简单</h2>
        <h2>n的值为：{{n}}</h2>
        <button @click="n++">点击n值加1</button>
    </div>

    <script>
        Vue.config.productionTip = false;
        new Vue({
            el: "#root",
            data: {
                n: 1
            }
        })
    </script>
</body>

</html>